<?php

class GeoController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
		$this->_helper->layout->disableLayout();
		$this->getRequest()->setParam('format', 'json'); 
    }

    public function indexAction()
    {
        // action body
    }

    public function zonasAction()
    {
        // action body
		$request = $this->getRequest();
		$tablaZonas = new Application_Model_DbTable_Zonas();
		$resultados = $tablaZonas->getZonasByIdPais($request->getParam('id'));
		$this->view->json = json_encode($resultados);
    }


}



